<?php

/**
 * Detalle form base class.
 *
 * @method Detalle getObject() Returns the current form's model object
 *
 * @package    blackDrums
 * @subpackage form
 * @author     your name here
 */
abstract class BaseDetalleForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'idAlquiler' => new sfWidgetFormInputHidden(),
      'idEquipo'   => new sfWidgetFormInputHidden(),
      'cantidad'   => new sfWidgetFormInputText(),
    ));

    $this->setValidators(array(
      'idAlquiler' => new sfValidatorPropelChoice(array('model' => 'Alquiler', 'column' => 'idAlquiler', 'required' => false)),
      'idEquipo'   => new sfValidatorPropelChoice(array('model' => 'Equipo', 'column' => 'idEquipo', 'required' => false)),
      'cantidad'   => new sfValidatorInteger(array('min' => -2147483648, 'max' => 2147483647)),
    ));

    $this->widgetSchema->setNameFormat('detalle[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Detalle';
  }


}
